
<%@ page import="rentadomus.Pqr" %>
<!DOCTYPE html>
<html>
  <head>
    <meta name="layout" content="main">
  <g:set var="entityName" value="${message(code: 'pqr.label', default: 'Pqr')}" />
  <title><g:message code="default.show.label" args="[entityName]" /></title>
</head>
<body>
  <a href="#show-pqr" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
  <div class="nav" role="navigation">
    <ul>
      <li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
      <li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
      <li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
    </ul>
  </div>
  <div id="show-pqr" class="content scaffold-show" role="main">
    <h1><g:message code="default.show.label" args="[entityName]" /></h1>
    <g:if test="${flash.message}">
      <div class="message" role="status">${flash.message}</div>
    </g:if>
    <ol class="property-list pqr">

      <g:if test="${pqrInstance?.place}">
        <li class="fieldcontain">
          <span id="place-label" class="property-label"><g:message code="pqr.place.label" default="Place" /></span>

          <span class="property-value" aria-labelledby="place-label">${pqrInstance?.place?.encodeAsHTML()}</span>
          <!--<span class="property-value" aria-labelledby="place-label"><g:link controller="place" action="show" id="${pqrInstance?.place?.id}">${pqrInstance?.place?.encodeAsHTML()}</g:link></span>-->

        </li>
      </g:if>
      
      <g:if test="${pqrInstance?.title}">
        <li class="fieldcontain">
          <span id="title-label" class="property-label"><g:message code="pqr.title.label" default="Title" /></span>

          <span class="property-value" aria-labelledby="title-label"><g:fieldValue bean="${pqrInstance}" field="title"/></span>

        </li>
      </g:if>
      
      <g:if test="${pqrInstance?.status}">
        <li class="fieldcontain">
          <span id="status-label" class="property-label"><g:message code="pqr.status.label" default="Status" /></span>

          <span class="property-value" aria-labelledby="status-label"><g:fieldValue bean="${pqrInstance}" field="status"/></span>

        </li>
      </g:if>
      
      <g:if test="${pqrInstance?.description}">
        <li class="fieldcontain">
          <span id="description-label" class="property-label"><g:message code="pqr.description.label" default="Description" /></span>

          <span class="property-value" aria-labelledby="description-label"><g:fieldValue bean="${pqrInstance}" field="description"/></span>

        </li>
      </g:if>

      <g:if test="${pqrInstance?.dateRequested}">
        <li class="fieldcontain">
          <span id="dateRequested-label" class="property-label"><g:message code="pqr.dateRequested.label" default="Date Requested" /></span>

          <span class="property-value" aria-labelledby="dateRequested-label"><g:formatDate date="${pqrInstance?.dateRequested}" /></span>

        </li>
      </g:if>
      
      <g:if test="${pqrInstance?.dateResolved}">
        <li class="fieldcontain">
          <span id="dateResolved-label" class="property-label"><g:message code="pqr.dateResolved.label" default="Date Resolved" /></span>

          <span class="property-value" aria-labelledby="dateResolved-label"><g:formatDate date="${pqrInstance?.dateResolved}" /></span>

        </li>
      </g:if>

    </ol>
    <g:form style="display:${display}">
      <fieldset class="buttons">
        <g:hiddenField name="id" value="${pqrInstance?.id}" />
        <g:if test="${visible}">
          <g:link class="edit" action="edit" id="${pqrInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
          <g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
        </g:if>
        <g:else>
          <g:link class="save" action="resolve" id="${pqrInstance?.id}">Resolve</g:link>
        </g:else>
      </fieldset>
    </g:form>
  </div>
</body>
</html>
